/* ========================================================================= */
/* GLOBAL THEME COLORS & SETTINGS                                            */
/* ========================================================================= */
:root {
    --primary-dark: #1B4332;   
    --primary-main: #2D6A4F;   
    --primary-light: #D8F3DC;  
    --accent-green: #40916C;
    --zone-green: #27AE60;
    --zone-yellow: #F1C40F;
    --zone-red: #E74C3C;
    --text-main: #2B2D42;
    --text-muted: #6C757D;
    --bg-green: #5fd486;
    --bg-light-grey: #F8F9FA;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

* {
     margin: 0;
     padding: 0;
      box-sizing: border-box;
       font-family: 'Inter', sans-serif;
     }
html { scroll-behavior: smooth;
 }
body { color: var(--text-main);
     background-color: var(--bg-white);
      line-height: 1.6;
     }
h1, h2, h3, h4 { font-weight: 700;
     color: var(--primary-dark);
     }
.mt-20 {
     margin-top: 20px;
 }

/* NAVBAR */
.navbar {
     background-color: var(--bg-white);
     box-shadow: var(--shadow-sm); position: sticky;
      top: 0; z-index: 1000; padding: 15px 0;
     }
.nav-container {
     max-width: 1200px;
     margin: 0 auto;
      display: flex; justify-content: space-between;
       align-items: center; padding: 0 20px;
     }
.logo-container {
     display: flex;
     align-items: center;
      gap: 8px;
     }
.logo-text {
     font-size: 24px;
     color: var(--primary-main);
      letter-spacing: -0.5px;
     }
.nav-links {
     list-style: none;
     display: flex;
      gap: 25px;
     }
.nav-links a { 
    text-decoration: none; color: var(--text-muted);
     font-weight: 600;
      font-size: 15px;
      transition: 0.3s;
     }
.nav-links a:hover { 
    color: var(--primary-main);
 }
.nav-cta-btn {
     background-color: var(--primary-main);
     color: white;
      border: none;
       padding: 10px 20px;
        border-radius: 6px; font-weight: 600;
         cursor: pointer;
          transition: 0.3s;
         }
.nav-cta-btn:hover {
     background-color: var(--primary-dark);
 }

/* HERO SECTION (Includes fade transition for slideshow) */
.hero-section { 
    position: relative; 
    background-size: cover;
    background-position: center;
    padding: 120px 20px; 
    text-align: center; 
    color: white; 
    transition: background-image 1.5s ease-in-out; 
}
.hero-overlay {
     position: absolute;
     top: 0;
      left: 0;
       right: 0;
        bottom: 0;
         background-color: rgba(27, 67, 50, 0.75);
          z-index: 1;
         }
.hero-content {
     position: relative;
     z-index: 2;
      max-width: 800px;
       margin: 0 auto;
     }
.badge {
     background: rgba(255,255,255,0.2);
     padding: 6px 12px;
      border-radius: 20px; font-size: 13px;
       font-weight: 600; text-transform: uppercase;
        display: inline-block; margin-bottom: 20px;
     }
.hero-content h2 {
     font-size: 42px;
     color: white;
      line-height: 1.2;
       margin-bottom: 20px;
     }
.hero-content p {
     font-size: 18px;
     color: #E9ECEF;
      margin-bottom: 40px;
     }
.search-card {
     background: white;
     padding: 10px;
      border-radius: 8px;
       display: flex;
        box-shadow: var(--shadow-lg);
         max-width: 600px; margin: 0 auto;
         }
.search-card input {                                                                                                                                                                                                                                                      flex-grow: 1;
     border: none;
      padding: 15px; font-size: 16px;
       outline: none;
        border-radius: 6px 0 0 6px;
     }

/* GENERAL BUTTONS */
.primary-btn {
     background-color: var(--primary-main);
     color: white;
      border: none;
       padding: 15px 25px; 
       font-size: 16px;
        font-weight: 600;
         border-radius: 6px;
          cursor: pointer;
           transition: 0.3s;
         }
.primary-btn:hover {
     background-color: var(--primary-dark);
 }
.primary-btn.outline {
     background-color:
     transparent; border: 2px solid var(--primary-main);
      color: var(--primary-main);
     }
.primary-btn.outline:hover {
     background-color: var(--primary-main);
     color: white;
     }
.secondary-btn {
     background-color: #E9ECEF;
     color: var(--text-main);
      border: none; padding: 12px 20px; 
      font-weight: 600; border-radius: 6px; cursor: pointer; 
      transition: 0.3s; }
.secondary-btn:hover { 
    background-color: #DEE2E6;
 }

/* SECTIONS & FEATURES GRID */
.content-section {
     padding: 80px 20px;
     }
.bg-light {
     background-color: var(--bg-light-grey); 
    }
.bg-white {
     background-color: var(--bg-white); 
    }
.section-header {
     text-align: center;
     max-width: 600px;
      margin: 0 auto 50px auto; 
    }
.section-header h3 { font-size: 32px;
     margin-bottom: 15px;
     }
.section-header p { color: var(--text-muted);
     font-size: 18px; }
.card-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
       max-width: 1200px;
        margin: 0 auto;
     }
.feature-card {
     background: white;
     padding: 40px 30px;
      border-radius: 12px;
       box-shadow: var(--shadow-md);
        border-top: 5px solid var(--primary-main);
     }
.border-top-red {
     border-top-color: var(--zone-red);
 }
.border-top-green { 
    border-top-color: var(--zone-green);
 }
.border-top-yellow {
     border-top-color: var(--zone-yellow);
 }
.card-icon {
     font-size: 40px; margin-bottom: 20px;
 }

/* MAP DASHBOARD (GRID LAYOUT) */
.map-dashboard {
    display: grid;
    grid-template-columns: 7fr 3fr; 
    max-width: 1200px;
     margin: 0 auto; background: white;
      border-radius: 12px;
    box-shadow: var(--shadow-lg);
     border: 1px solid #E9ECEF; overflow: hidden;
      min-height: 500px;
}
.map-display {
 width: 100%;
     height: 100%;
      min-height: 500px;
       z-index: 1;
        border-right: 1px solid #E9ECEF;
}
.map-controls {
     padding: 30px;
     background-color: var(--bg-white);
      display: flex;
       flex-direction: column;
     }
.legend-list {
     list-style: none;
     margin-top: 15px;
     }
.legend-list li {
     display: flex; 
    align-items: center;
     margin-bottom: 12px; font-size: 15px; 
     color: var(--text-muted); 
    }
.legend-list strong {
     color: var(--text-main);
     margin-right: 5px;
     }
.color-box {
     width: 20px;
     height: 20px;
      border-radius: 4px; 
      margin-right: 15px; 
      display: inline-block;
     }
.bg-green {
     background-color: var(--zone-green);
 }
.bg-yellow {
     background-color: var(--zone-yellow);
 }
.bg-red {
     background-color: var(--zone-red);
 }
.filter-group label {
     display: block;
     margin-bottom: 10px;
      font-size: 15px;
       cursor: pointer; 
    }
.filter-group input {
     margin-right: 10px;
     accent-color: var(--primary-main);
     }
.download-btn {
     margin-top: auto;
     width: 100%;
     } 

/* COMMUNITY CARDS */
.community-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px; max-width: 900px;
       margin: 0 auto;
     }
.action-card {
     background: white;
     padding: 40px;
      border-radius: 12px;
       box-shadow: var(--shadow-sm);
        border: 1px solid #E9ECEF;
     }
.action-card h4 {
     font-size: 22px;
     margin-bottom: 15px; 
    }
.action-card p {
     margin-bottom: 25px;
     color: var(--text-muted);
     }

/* FOOTER */
.site-footer {
     background-color: var(--primary-dark);
     color: white;
      padding: 60px 20px 20px 20px;
     }
.footer-container {
     max-width: 1200px; margin: 0 auto;
     display: flex;
      flex-wrap: wrap;
       justify-content: space-between;
        gap: 40px;
         margin-bottom: 40px;
         }
.footer-brand h2 {
     color: white;
     margin-bottom: 15px;
     }
.footer-brand p {
     color: #A3B18A;
     max-width: 300px;
     }
.footer-links h4, .footer-contact h4 { 
    color: white;
     margin-bottom: 20px;
     }
.footer-links ul {
     list-style: none;
 }
.footer-links a, .footer-contact a {
     color: #A3B18A;
     text-decoration: none;
     }
.footer-links a:hover, .footer-contact a:hover {
     color: white;
 }
.footer-bottom {
     text-align: center;
     padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,0.1);
       color: #A3B18A;
        font-size: 14px;
     }

/* SCROLL BUTTON */
.scroll-top-btn {
    display: none;
     position: fixed;
      bottom: 30px;
       right: 30px;
        z-index: 1000;
    border: none;
     background-color: var(--primary-main);
      color: white;
       cursor: pointer;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    font-size: 24px; font-weight: bold;
    box-shadow: var(--shadow-md);
     transition: 0.3s;
}
.scroll-top-btn:hover {
     background-color: var(--primary-dark); 
    transform: translateY(-5px); 
}

/* ========================================================================= */
/* REPORT PAGE CSS (Floating Form & Background)                              */
/* ========================================================================= */
.report-page-body {
    background-image: url('images/report-bg.jpg');
     /* Custom report background */
    background-size: cover;
     background-position: center;
      background-attachment: fixed;
    position: relative;
     min-height: 100vh;
}
.report-bg-overlay {
     position: fixed;
     top: 0; 
     left: 0;
      right: 0;
       bottom: 0; 
       background-color: rgba(27, 67, 50, 0.85);
       z-index: 0;
     }
.floating-form-section {
     position: relative;
     z-index: 10;
      padding: 60px 20px; 
      display: flex;
       align-items: center; 
       justify-content: center;
        min-height: calc(100vh - 80px);
     }
.form-container {
     width: 100%;
     max-width: 600px; 
     background: white; 
     padding: 40px;
      border-radius: 12px;
       box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
        border-top: 5px solid var(--primary-main);
     }
.form-group {
     margin-bottom: 25px;
     text-align: left;
     }
.form-group label {
     display: block; 
    font-weight: 600;
     margin-bottom: 8px;
      color: var(--primary-dark);
     }
.form-control {
     width: 100%; padding: 12px 15px;
     border: 1px solid #ccc;
      border-radius: 6px;
       font-size: 15px;
        outline: none;
         transition: border-color 0.3s;
         }
.form-control:focus {
     border-color: var(--primary-main); box-shadow: 0 0 5px rgba(45, 106, 79, 0.3);
 }
.gps-inputs {
     display: flex; gap: 15px;
 }

/* COOL CENTERED LOGO ANIMATION */
.cool-logo {
    font-size: 32px;
     font-weight: 800;
      text-transform: uppercase;
       letter-spacing: 1.5px;

    background: linear-gradient(to right, #1B4332, #27AE60, #48C9B0, #1B4332);

    background-size: 200% auto;
     color: #000;

    background-clip: text;
     -webkit-background-clip: text; 
     -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center;
 } }

/* RESPONSIVE LAYOUT FOR PHONES */
@media (max-width: 900px) {
    .nav-links {
         display: none;
     }
    .map-dashboard { grid-template-columns: 1fr; } 
    .map-display {
         border-right: none; border-bottom: 1px solid #E9ECEF; min-height: 400px;
     }
    .download-btn { margin-top: 30px; }
}

/* ========================================================================= */
/* COMMUNITY HUB PAGE STYLES                                                 */
/* ========================================================================= */

.community-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px; /* Left Sidebar, Center Feed, Right Widgets */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sidebar Navigation */
.sidebar-menu {
    background: white;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-main);
}

/* Create Post Box */
.create-post-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid #E9ECEF;
}

.post-input-area {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.create-post-box textarea {
    flex-grow: 1;
    border: none;
    background: #F8F9FA;
    border-radius: 8px;
    padding: 15px;
    resize: none;
    font-size: 15px;
    outline: none;
}

.post-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #E9ECEF;
    padding-top: 15px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}
.icon-btn:hover { background: #E9ECEF; color: var(--primary-main); }

/* Feed Posts */
.feed-post {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid #E9ECEF;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.post-header h4 { margin-bottom: 2px; font-size: 16px; }
.post-header small { color: var(--text-muted); }

.feed-post p { margin-bottom: 15px; color: #333; }

.post-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.post-footer {
    display: flex;
    border-top: 1px solid #E9ECEF;
    padding-top: 15px;
    gap: 20px;
}

.action-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.action-toggle.liked { color: var(--primary-main); }
.action-toggle:hover { color: var(--primary-main); }

/* Right Widgets */
.widget-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E9ECEF;
    position: sticky;
    top: 100px;
}

.widget-card h4 {
     margin-bottom: 15px;
     border-bottom: 2px solid #E9ECEF; padding-bottom: 10px; 
    }

.campaign-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.date-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
}
.date-badge span {
     display: block; font-size: 11px;
     font-weight: bold; 
    }
.date-badge strong { font-size: 18px; }

.group-list { list-style: none; }
.group-list li {
     margin-bottom: 12px;
     font-weight: 500; color: #444; cursor: pointer; }
.group-list li:hover { color: var(--primary-main); 
}

/* Mobile Responsiveness for Community Page */
@media (max-width: 950px) {
    .community-layout { grid-template-columns: 1fr; }
    .comm-sidebar, .comm-widgets { position: static; }
}